package edu.xpu.project.user.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @describe 成绩项实体
 * @author liukang
 * @date 2017年5月20日
 */
@Entity(name="ScoreItem")
@Table(name="XPU_SCORE_ITEM")
public class ScoreItem implements Serializable {

	private static final long serialVersionUID = -8137900528088760558L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long id;
	
	private String itemName;
	
	private Double scoreVal;
	
	@ManyToOne(optional=true)
	@JoinColumn(name="score_id")
	private ScoreEntity scoreEntity;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public Double getScoreVal() {
		return scoreVal;
	}

	public void setScoreVal(Double scoreVal) {
		this.scoreVal = scoreVal;
	}

	public ScoreEntity getScoreEntity() {
		return scoreEntity;
	}

	public void setScoreEntity(ScoreEntity scoreEntity) {
		this.scoreEntity = scoreEntity;
	}
	

}
